/*
 * @(#)Component.java 0.0.1-SNAPSHOT
 *
 * Copyright 2009 Telefónica I+D.
 */
package edu.upf.grupE;

/**
 * <p>This Component interface represents a Calculator </p>.
 *
 * <p>Sample:</p>
 * <PRE>
 *    Component component = new edu.upf.grupE.Component();
 *    System.out.println(component.add(5.0,3.0));
 * </PRE>
 *
 * @version    0.0.1-SNAPSHOT
 * @author     ${developerName}
 */

public interface Component {
    /**
    * This method calculates the added of two numbers.
    * @param a first operand
    * @param b second operand
    * @return The added of  <TT>a</TT> and <TT>b</TT>
    */
     double add(double a, double b);

     /**
     * This method calculates the square root of a number.
     * @param a Primer operando
     * @return The square root of <TT>a</TT>
     * @exception  IllegalArgumentException This exception is launched when
     *              <TT>a</TT> is a negative number.
     */
     double sqrt(double a);
}